Ext
		.define(
				'com.hh.workflow.pd.ProcessDefinition',
				{
					extend : 'com.hh.global.SimpleGroupGridPanel',
					title : '流程定义管理',
					action : 'workflow-Activiti-queryProcessDefinition',
					deleteAction : 'workflow-Activiti-deleteProcessDefinitions',
					constructor : function(config) {
						this.config = config || {};
						this.superclass.constructor.call(this, this.config);
						this.init();
					},
					groupHeaderTpl : '共：{rows.length} 条',
					getStoreFields : function() {
						return [ 'id', 'key', 'name', 'deploymentId',
								'version', 'description' ];
					},
					groupField : 'key',
					getGridColumns : function() {
						return [ {
							text : 'id',
							flex : 1,
							dataIndex : 'id',
							hidden : true
						}, {
							text : '名称',
							flex : 1,
							dataIndex : 'name'
						}, {
							text : '描述',
							flex : 1,
							dataIndex : 'description'
						}, {
							text : '版本',
							flex : 1,
							dataIndex : 'version'
						} ];
					},
					doBaseDelete : function(grid, records, url) {
						if (Util.isNull(records)) {
							ExtFrame.info("请选中要删除的数据！");
						} else {
							var strids = Util.recordsToStrByKey(records,
									"deploymentId");
							var vorgids = Util.recordsToStrByKey(records,
									"vorgid");
							var vcreates = Util.recordsToStrByKey(records,
									"vcreate");
							if (Util.isNull(strids)) {
								return;
							}
							var result = Ext.Msg
									.confirm(
											'请确认',
											'<span style="color:red"><b>提示:</b>您确认要删除信息吗？,请慎重...</span>',
											function(btn) {
												if (btn == 'yes') {
													Ext.Msg
															.confirm(
																	'请确认',
																	'<span style="color:red"><b>提示:</b>删除此流程定义的所有信息？,请慎重...</span>',
																	function(
																			btn) {
																		var cascade = false;
																		if (btn == 'yes') {
																			cascade = true;
																		}
																		Request
																				.synRequestObject(
																						url,
																						{
																							ids : strids,
																							orgids : vorgids,
																							vcreates : vcreates,
																							cascade : cascade
																						});
																		grid
																				.getStore()
																				.load();
																	});
												}
											});
						}
					}
				});